import tkinter as tk

root = tk.Tk()

root.title('第一个窗口对象')
root.geometry('500x300+100+200')


def create_label(master):
    label = tk.Label(master, text='我的第一个tkinter窗口')
    label.pack()


create_label(root)
create_label(root)
create_label(root)
create_label(root)
create_label(root)

root.mainloop()
